{include file="public/header" /}



<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.adv_index_manage}</h3>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
  <div class="fixed-empty"></div>
  <form method="get" action="" name="formSearch">
      <div class="ds-search-form">
            <dl>
                <dt>类型名称</dt>
                <dd><input class="txt" type="text" name="search_name" id="search_name" value="{$Request.param.search_name}" /></dd>
            </dl>
            <div class="btn_group">
                <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
                {if $filtered}
                <a href="{:url('Adv/ap_manage')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
                {/if}
            </div>
        </div>
  </form>
<!--  <div class="explanation" id="explanation">-->
<!--      <div class="title" id="checkZoom">-->
<!--          <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>-->
<!--          <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>-->
<!--      </div>-->
<!--      <ul>-->
<!--          <li>{$Think.lang.adv_help2}</li>-->
<!--      </ul>-->
<!--  </div>-->
    <table class="ds-default-table">
      <thead>
        <tr class="thead">
<!--          <th><input type="checkbox" class="checkall"/></th>-->
            <th>广告类型名称</th>
<!--          <th class="align-center">{$Think.lang.ap_width}</th>-->
<!--          <th class="align-center">{$Think.lang.ap_height}</th>-->
            <th class="w300 align-center">创建时间</th>
          <th class="w300 align-center">{$Think.lang.ds_handle}</th>
        </tr>
      </thead>
      <tbody>
        {notempty name="ap_list"}
        {foreach name="ap_list" item="v" key="k" }
        <tr class="hover" id="ds_row_{$v.ap_id}">
<!--          <td class="w24"><input type="checkbox" class="checkitem" name="del_id[]" value="{$v.ap_id}" /></td>-->
          <td class="name">
              {if condition="($v.ap_name==1)"}视频广告
              {elseif condition="($v.ap_name==2)"}商品促销
              {elseif condition="($v.ap_name==3)"}项目定制
              {elseif condition="($v.ap_name==4)"}文章类
              {/if}
          </td>
<!--          <td class="align-center sort">{$v.ap_width}</td>-->
<!--          <td class="align-center sort">{$v.ap_height}</td>-->
            <td class="w200 align-center"><?php echo date("Y-m-d H:i:s",$v['time']);?></td>
          <td class="align-center">
<!--              <a href="{:url('Adv/adv',['ap_id'=>$v.ap_id])}" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_manage}</a>-->
<!--              <a class="dsui-btn-view" href="javascript:dsLayerOpen('{:url('Adv/detail',['ap_id'=>$v.ap_id])}','查看','1000px','700px')"><i class="iconfont"></i>查看详情</a>-->
              <a href="javascript:dsLayerOpen('{:url('Adv/ap_edit',['ap_id'=>$v.ap_id])}','{$Think.lang.ds_edit}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
              <a href="javascript:dsLayerConfirm('{:url('Adv/ap_del',['ap_id'=>$v.ap_id])}','{$Think.lang.ds_ensure_del}',{$v.ap_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
          </td>
        </tr>
        {/foreach}
        {else /}
        <tr class="no_data">
          <td colspan="15">{$Think.lang.ds_no_record}</td>
        </tr>
        {/notempty}
      </tbody>
    </table>
    {$showpage}
</div>
<script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
<script type="text/javascript" src="{$Think.PLUGINS_SITE_ROOT}/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>

